package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.WechatNoticeTemplateMapper;
import com.whq.entity.WechatNoticeTemplate;
import com.whq.service.WechatNoticeTemplateService;

@Service(value = "tdWechatNoticeTemplateService")
public class WechatNoticeTemplateServiceImpl implements WechatNoticeTemplateService {

    @Autowired
    private WechatNoticeTemplateMapper<WechatNoticeTemplate>tdWechatNoticeTemplateMapper;
    
    @Override
    public Integer insertSelective(WechatNoticeTemplate tdWechatNoticeTemplate) throws Exception {
           return this.tdWechatNoticeTemplateMapper.insertSelective(tdWechatNoticeTemplate);
        }

    @Override
    public Integer insertBatch(List<WechatNoticeTemplate> tdWechatNoticeTemplate) throws Exception {
           return this.tdWechatNoticeTemplateMapper.insertBatch(tdWechatNoticeTemplate) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdWechatNoticeTemplateMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdWechatNoticeTemplateMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(WechatNoticeTemplate tdWechatNoticeTemplate) {
           return this.tdWechatNoticeTemplateMapper.updateByPrimaryKeySelective(tdWechatNoticeTemplate);
    }

    @Override
    public WechatNoticeTemplate findById(Object id) {
           return (WechatNoticeTemplate) this.tdWechatNoticeTemplateMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<WechatNoticeTemplate> selectByCondition(WechatNoticeTemplate tdWechatNoticeTemplate) {
           return (List<WechatNoticeTemplate>) this.tdWechatNoticeTemplateMapper.selectByCondition(tdWechatNoticeTemplate);
    }

    @Override
    public Integer selectCountByCondition(WechatNoticeTemplate tdWechatNoticeTemplate) {
           return  this.tdWechatNoticeTemplateMapper.selectCountByCondition(tdWechatNoticeTemplate);
    }

}
